home *** CD-ROM | disk | FTP | other *** search
/ PCNet 1998 June / PCnet Haziran 1998.iso / Internet / Tools / ANJAVA10.ZIP / DATA1.CAB / Program_Executable_Files / Applet / cfade / anfade.txt < prev    next >
Encoding:
Text File  |  1998-04-23  |  5.4 KB  |  118 lines

  1.  
  2.           AnfyFade 2.1 - Copyright (C) by Fabio Ciucci 1996/98
  3.  
  4.  
  5. This applet can execute a cross-fade between any GIF or JPG image, the only
  6. requirement is that all images must be same size.
  7. Remember, are needed: AnFade.class , Lware.class and anfy.class.
  8. You must upload these 3 .class files and insert the <applet> tag on your
  9. html document to add this applet to your page.
  10. Here an example of what you have to write in the html (the things anfter
  11. the ; are comments with min-max values acceptet):
  12.  
  13.  
  14. <applet code="AnFade.class" width=150 height=132> ; Name, Width, Height
  15. <param name=credits value="Applet by Fabio Ciucci (www.anfiteatro.it/java.html)">
  16. <param name=regcode value="NO">         ; Register code (if you have it)
  17. <param name=regnewframe value="YES">    ; Reglink opened in new frame?
  18. <param name=regframename value="_blank"> ; Name of new frame for reglink
  19. <param name=image1 value="imfad1.gif">     ; Image 1 to load
  20. <param name=image2 value="imfad2.gif">     ; Image 2 to load
  21. <param name=image3 value="imfad3.gif">     ; Image 3 to load
  22. <param name=image4 value="imfad4.gif">     ; Image 4 to load
  23. <param name=image5 value="imfad5.gif">     ; Image 5 to load
  24. <param name=image6 value="imfad6.gif">     ; Image 6 to load (etc.)
  25. <param name=link1 value="http://www.anfiteatro.it/java.html">   ; link 1
  26. <param name=link2 value="NO">                                   ; link 2
  27. <param name=link3 value="NO">                                   ; link 3
  28. <param name=link4 value="http://www.anfiteatro.it/java.html">   ; link 4
  29. <param name=link5 value="http://www.anfiteatro.it/java.html">   ; link 5
  30. <param name=link6 value="http://www.anfiteatro.it/java.html">   ; link 6
  31. <param name=statusmsg1 value="anfy 1">       ; statusbar msg on image 1
  32. <param name=statusmsg2 value="anfy 2">       ; statusbar msg on image 2
  33. <param name=statusmsg3 value="anfy 3">       ; statusbar msg on image 3
  34. <param name=statusmsg4 value="anfy 4">       ; statusbar msg on image 4
  35. <param name=statusmsg5 value="anfy 5">       ; statusbar msg on image 5
  36. <param name=statusmsg6 value="anfy 6">       ; statusbar msg on image 6
  37. <param name=res value="1">                 ; resolution (1-8)
  38. <param name=speed value="8">               ; speed of fade (1-255)
  39. <param name=pause value="1500">            ; pause in milliseconds.
  40. <param name=memdelay value="1000">        ; Memory deallocation delay
  41. <param name=priority value="3">           ; Task priority (1..10)
  42. <param name=MinSYNC value="10">           ; Min. milliseconds/frame for sync
  43. Sorry, your browser doesn't suppor Java.   ; Msg in no java browsers
  44. </applet>
  45.  
  46.                              ---------
  47.  
  48.  
  49. Here detailed instructions about how to change parameters:
  50.  
  51.  
  52. The images can be of any size, GIF and/or JPG. But must be same size.
  53.  
  54. The credits parameter can't be changed otherwise the applet will not work.
  55.  
  56. To activate the reg parameters read the shareware registration notes.
  57. In the "regcode" parameter you have to place the registration code you
  58. purchase from the author. If it is correct and the applet is run from the
  59. registered domain name, you can use "link" parameters, where you can specify
  60. an URL where bring user when the applet is clicked.
  61. If you set to "YES" regnewframe, you can specify a frame where load the
  62. reglink:
  63.  
  64. "_blank"  : To load the link in a new blank unnamed browser window.
  65. "_self"   : To load the link into the same window the applet occupies.
  66. "_parent" : To load the link into the immediate FRAMESET parent.
  67. "_top"    : To load the link into the top body of the window.
  68.  
  69. Otherwise the frame name, for example "myframe1".
  70.  
  71. res determine the size of the applet: with res=1 it equals the size of the
  72. pics, with res=2 is double, etc.
  73. Remember to update the width and height tags: with res=1 must be same as the
  74. size of pics, with res=2 must be double etc.
  75. Otherwise the applet will be not well displayed on browsers.
  76.  
  77. You can decide HOW MUCH images add in crossfading slideshow.
  78. The min is 2, max is up to you.
  79. If you want to fade between 2 only images, do something like:
  80.  
  81. <param name=image1 value="imfad1.gif">
  82. <param name=image2 value="imfad2.gif">
  83.  
  84. If you want to fade between 3 images, do something like:
  85.  
  86. <param name=image1 value="imfad1.gif">
  87. <param name=image2 value="imfad2.gif">
  88. <param name=image3 value="imfad3.gif">
  89.  
  90. And so on. Just add image4,image5,.....
  91.  
  92. With statusmsg1,statusmsg2,statusmsg3... parameters you can change the message
  93. displayed in the statusbar when the different images are displayed.
  94.  
  95. Paying shareware registration, the link1,link2,... parameters will be enabled
  96. and this applet can become a crossfade banner:
  97.  
  98. <param name=link1 value="http://www.anfiteatro.it/java.html">
  99. <param name=link2 value="NO">
  100.  
  101. With this example, if the aplet is clicked when image 1 is displayed, it will
  102. bring to http://www.anfiteatro.it/java.html, but if cliecked when image 2
  103. is displayed, any linking will be done since we wrote "NO".
  104. You can place an URL link related to each image, just use same number.
  105.  
  106.  
  107.  
  108. The speed parameter determine the speed of fade between images. To be exact,
  109. it determine the number of frames, calculated as 256/speed.
  110. A good value is 8, where you have 32 frames, a good resolution for 65000
  111. colors displays, and quite fast. Values under 8 are useful only for who has
  112. a 24bit video mode (16 millions of colors), otherwise is only slower.
  113.  
  114. The pause, in milliseconds, determine the "hold" time for images between
  115. the fades.
  116.  
  117.  
  118.